package com.mrxuxu.workspace.global.controller;

import com.mrxuxu.workspace.global.service.IGlobalService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * Created by belie on 2017/2/14.
 */
@Controller
@RequestMapping("/global/*")
public class GlobalController {

    @Resource(name="centralService")
    IGlobalService centralService;

    @Resource(name="globalService")
    IGlobalService globalService;

    @RequestMapping("login.c")
    public String login(){
        //System.out.print("");
        centralService.countAccount();
        globalService.countAccount();
        return "index";
    }

}
